package com.numbfish.ch02_ex01_aop.config;

import com.numbfish.ch02_ex01_aop.aop.MyAspect;
import com.numbfish.ch02_ex01_aop.pojo.Person;
import com.numbfish.ch02_ex01_aop.service.MyCalculator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class CustomConfig {
    @Bean
    public MyCalculator myCalculator(){
        return new MyCalculator();
    }

    @Bean
    public MyAspect myAspect(){
        return new MyAspect();
    }
}
